package top.malegod.model;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.Date;

/**
 * Create by IntelliJ IDEA
 *
 * @author: AbelEthan
 * @date-Time: 2018/5/24 15:41
 * @description:  社区
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Community {

  private String id;

  private String image;

  private String content;

  private Date createTime;

  private String userId;

  public Community() {
  }

  public Community(String id, String image, String content, Date createTime, String userId) {
    this.id = id;
    this.image = image;
    this.content = content;
    this.createTime = createTime;
    this.userId = userId;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getImage() {
    return image;
  }

  public void setImage(String image) {
    this.image = image;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  @Override
  public String toString() {
    return "Community{" +
        "id='" + id + '\'' +
        ", image='" + image + '\'' +
        ", content='" + content + '\'' +
        ", createTime=" + createTime +
        ", userId='" + userId + '\'' +
        '}';
  }
}
